
import {
    Toast,
    InfiniteScroll,
    MessageBox,
    Popup,
    Lazyload,
    Picker,
    DatetimePicker,
    Cell,
    Button,
    Spinner,
    Tabbar,
    TabItem,
    TabContainer, 
    TabContainerItem,
    Switch,
    Checklist,
    Actionsheet,
    Radio,
    Field,
    Progress
} from 'mint-ui'

const MintUI = {
    install: function (Vue) {
        Vue.component(Progress.name, Progress)
        Vue.component(Toast.name, Toast)
        Vue.use(InfiniteScroll)
        Vue.component(MessageBox.name, MessageBox)
        Vue.component(Popup.name, Popup)
        Vue.use(Lazyload)
        Vue.component(Picker.name, Picker)
        Vue.component(DatetimePicker.name, DatetimePicker)
        Vue.component(Cell.name, Cell)
        Vue.component(Button.name, Button)
        Vue.component(Spinner.name, Spinner)
        Vue.component(Tabbar.name, Tabbar);
        Vue.component(TabItem.name, TabItem)
        Vue.component(TabContainer.name, TabContainer);
        Vue.component(TabContainerItem.name, TabContainerItem)
        Vue.component(Switch.name, Switch)
        Vue.component(Checklist.name, Checklist)
        Vue.component(Actionsheet.name, Actionsheet)
        Vue.component(Radio.name, Radio)
        Vue.component(Field.name, Field)
        Vue.prototype.$toast = Toast
        Vue.prototype.$alert = MessageBox.alert
        Vue.prototype.$confirm = MessageBox.confirm
        
    }
}

export default MintUI
